package com.youzikj.wx.pay;

public class Configure {
	
	private static final String sdkVersion = "1.0";

	private static String appID = "wxca78deeb014de180";

	private static String mchID = "1571230c181e897c0f0a492d1e2aa47c";

	private static String subMchID = "1419995602 ";

	private static String certLocalPath = "E:/apiclient_cert.p12";

	private static String certPassword = "1419995602";
	
	private static String key = "wycdyouzikj090897678667868726364";
	
	private static String notifyCallbackUrl = "https://114.215.207.119/wycd/notify";
			
	//机器IP
	private static String ip = "114.215.207.119";
	
	public static String PAY_API = "https://api.mch.weixin.qq.com/pay/unifiedorder";
	

	/**
	 * 
	 * @param appID 微信分配的公众号ID
	 * @param mchID 微信支付分配的商户号ID
	 * @param subMchID 受理模式下给子商户分配的子商户号, 默认可填 ""
	 * @param certLocalPath  HTTPS证书的本地路径
	 * @param certPassword HTTPS证书密码，默认密码等于商户号MCHID
	 * @param key 加密秘钥
	 */
	public static void initialize(String appID, String mchID, String subMchID, 
			String certLocalPath, String certPassword, String key, String notifyCallbackUrl){
		
		Configure.key = key;
		Configure.appID = appID;
		Configure.mchID = mchID;
		Configure.subMchID = subMchID;
		Configure.certLocalPath = certLocalPath;
		Configure.certPassword = certPassword;
		Configure.key = key;
		Configure.setNotifyCallbackUrl(notifyCallbackUrl);
	}


	public static String getAppID() {
		return appID;
	}


	public static void setAppID(String appID) {
		Configure.appID = appID;
	}


	public static String getMchID() {
		return mchID;
	}


	public static void setMchID(String mchID) {
		Configure.mchID = mchID;
	}


	public static String getSubMchID() {
		return subMchID;
	}


	public static void setSubMchID(String subMchID) {
		Configure.subMchID = subMchID;
	}


	public static String getCertLocalPath() {
		return certLocalPath;
	}


	public static void setCertLocalPath(String certLocalPath) {
		Configure.certLocalPath = certLocalPath;
	}


	public static String getCertPassword() {
		return certPassword;
	}


	public static void setCertPassword(String certPassword) {
		Configure.certPassword = certPassword;
	}


	public static String getKey() {
		return key;
	}


	public static void setKey(String key) {
		Configure.key = key;
	}


	public static String getNotifyCallbackUrl() {
		return notifyCallbackUrl;
	}


	public static void setNotifyCallbackUrl(String notifyCallbackUrl) {
		Configure.notifyCallbackUrl = notifyCallbackUrl;
	}


	public static String getIp() {
		return ip;
	}


	public static void setIp(String ip) {
		Configure.ip = ip;
	}


	public static String getPAY_API() {
		return PAY_API;
	}


	public static void setPAY_API(String pAY_API) {
		PAY_API = pAY_API;
	}


	public static String getSdkversion() {
		return sdkVersion;
	} 
	
	
	
	


}
